package com.mdb.open.trade.domain.bo.trade;


/*
* Copyright (C), 2017-2019 澳发科技(MDB)
* FileName: TfLoanContractService.java
* Author:   you.yichao
* Date:     2019-07-04
* History:
* <author>          <time>          <version>          <desc>
* you.yichao         2019-07-04          V1.00             代码生成器初始生成代码
* -----------------------------------------------------------
* 作者姓名           修改时间           版本号            描述
*/

import com.mdb.bc.api.data.DataObjectBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
* 类描述：
*  融资借据单表数据传输类
*
* @author you.yichao
* @date 2019-07-04
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="SaveLoanContractBo", description="保存融资借据单表Bo对象")
public class SaveLoanContractBo extends DataObjectBase {

    private static final long serialVersionUID = 1L;

    /**
    * 融资单号
    */
    @ApiModelProperty(value = "融资单号")
    @NotBlank(message = "融资单号不允许为空")
    private String applyOrderNo;

    /**
     * 客户编码
     */
    @ApiModelProperty(value = "客户编码")
    @NotBlank(message = "客户编码不允许为空")
    private String customerCode;

    /**
     * 客户名称
     */
    @ApiModelProperty(value = "客户名称")
    @NotBlank(message = "客户名称不允许为空")
    private String customerName;

    /**
     * 商户编号
     */
    @ApiModelProperty(value = "商户编号")
    @NotBlank(message = "商户编号不允许为空")
    private String merchantNo;

    /**
     * 商户名称
     */
    @ApiModelProperty(value = "商户名称")
    @NotBlank(message = "商户名称不允许为空")
    private String merchantName;

    /**
     * 商户平台子账号
     */
    @ApiModelProperty(value = "商户平台子账号")
    @NotBlank(message = "商户平台子账号不允许为空")
    private String merchantSubAcc;

    /**
    * 签署到期日
    */
    @ApiModelProperty(value = "签署到期日")
    @NotNull(message = "签署到期日不允许为空")
    private LocalDateTime expireDate;

    /**
    * 融资期限 天为单位
    */
    @ApiModelProperty(value = "融资期限 天为单位")
    private Integer loanTerm;

    /**
    * 币种
    */
    @ApiModelProperty(value = "币种")
    @NotBlank(message = "币种不允许为空")
    private String ccy;

    /**
     * 批复金额
     */
    @ApiModelProperty(value = "批复金额")
    @NotNull(message = "批复金额不允许为空")
    private BigDecimal approveAmount;

    /**
    * 申请金额
    */
    @ApiModelProperty(value = "申请金额")
    @NotNull(message = "申请金额不允许为空")
    private BigDecimal applyAmount;

    /**
    * 还款日
    */
    @ApiModelProperty(value = "还款日")
    private LocalDateTime repaymentDate;

}
